<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-6">{:__('请勾选需要关联的服务')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="checkbox">
                {if $serviceList}
                {foreach name="serviceList" item="vo"}
                <label for="c-service_id-{$key}" style="display: block;margin-top: 5px; font-size: medium;">
                    <input id="c-service_id-{$key}" name="service_id[]" type="checkbox" value="{$vo->id}" /> {$vo->service_name}
                </label>
                {/foreach}
                {else}
                <small style="margin-top: 5px; font-size: medium;color: #ff0000;">温馨提示：服务全部关联</small>
                {/if}
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
